<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/7 0007
 * Time: 14:14
 */
namespace app\controllers;

use app\models\Modules;
use Yii;
use yii\web\Controller;

class ModulesController extends Controller
{

    public $layout = 'main';

    public function actionModuleslist(){
        
        $model = new Modules();
        
        return $this->render('moduleslist',[
            'title'=>'分类列表',
            'model'=>$model->find()->all()
        ]);
    }


    public function actionCreate(){


        return $this->render('create',[
            'title'=>'创建分类'
        ]);
    }



}